package BehavioralMode.interpreter.calculator;

import java.util.HashMap;
import java.util.Map;

/**
 * 运行环境类
 * */
public class Context {
    private Map<String,Integer> contenxt = new HashMap<>();

    public void put(Variable variable,Integer value){
       contenxt.put(variable.getKey(),value);
    }
    public int get(String key){
        return  contenxt.get(key);
    }

}
